package com.schoolET.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolET.entity.OrderManagement;
import com.schoolET.entity.dto.OrderManagementDTO;
import com.schoolET.mapper.OrderManagementMapper;
import com.schoolET.service.IOrderManagementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户商品交易 服务实现类
 * </p>
 *
 * @author lin
 * @since 2024-06-01
 */
@Service
public class OrderManagementServiceImpl extends ServiceImpl<OrderManagementMapper, OrderManagement> implements IOrderManagementService {


    @Resource
    private OrderManagementMapper orderManagementMapper;
    @Override
    public Page<OrderManagementDTO> getOrderManagement(Integer pageNum,Integer pageSize) {
        Page<OrderManagementDTO> page = new Page<OrderManagementDTO>(pageNum, pageSize);
        return orderManagementMapper.selectByproductStatus(page);
    }
}
